package com.vstudy.zx.dao;

import com.vstudy.zx.entity.Subject;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@CacheNamespace(size = 512)
public interface SubjectDao {
    @Select("select * from tb_subject")
    List<Subject> select();

    @Select("select * from tb_subject where subject_id=#{sId}")
    Subject selectById(Long sId);
}
